<?php

/***
*
* FILE: /index.php
* DESC: Индекс LjeyCMS
* VER: 0.0.1
* 
***/

// security define
define('NDIRECT', true);

// include helpers
require_once ('classes/functions.php');

// load config
require_once ('config.php');

// initialize DB object
require_once ('classes/dbdrive.php');
$DB = dbdrive::init(DBHOST,DBBASE,DBUSER,DBPASS);
if (!$DB->stateOfDB) die ('Не могу подключиться к базе данных');

// initialize Options object
require_once ('classes/options.php');
$options = new options();

// route current URL
require_once ('classes/routing.php');
$routing = new routing();

echo ("\n\n\n\n <!-- ".memory_get_usage()." -->");

?>